package com.sds.emp.services.user.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sds.emp.services.user.UserService;
import com.sds.emp.services.user.vo.SearchVO;
import com.sds.emp.services.user.vo.UserVO;

@Service(value = "com.sds.emp.services.user.UserService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDAO userDAO;

    public final List<UserVO> getUserList(final SearchVO searchVO)
            throws Exception {
        LOGGER.debug("UserServiceImpl getUserList method is called.");
        return userDAO.getUserList(searchVO);
    }

    public final void addUser(final UserVO userVO) throws Exception {
        LOGGER.debug("UserServiceImpl addUser method is called.");
        userDAO.addUser(userVO);
    }

    public final void updateUser(final UserVO userVO) throws Exception {
        LOGGER.debug("UserServiceImpl updateUser method is called.");
        userDAO.updateUser(userVO);
    }
}
